package com.meituan.sdk.model.pms.reservation.changeOccupationDurationHourrent;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 时租房提前入住时更新占房时间
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/reservation/changeOccupationDurationForHourRent",
    businessId = 57,
    apiVersion = "10042",
    apiName = "change_occupation_duration_hourrent",
    needAuth = true
)
public class ChangeOccupationDurationHourrentRequest implements MeituanRequest<ChangeOccupationDurationHourrentResponse> {
    /**
    * <p data-diff-id="ct-diff-id-bf8f19e1-90b8-47de-94e7-a408261ca2d9">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-68737dc9-4c25-46e3-9cd3-c16b576d99d2">占房ID</p>
    */
    @NotNull(message = "occupationId不能为空")
    @SerializedName("occupationId")
    private Long occupationId;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public Long getOccupationId() {
        return occupationId;
    }
    public void setOccupationId(Long occupationId) {
        this.occupationId = occupationId;
    }


    @Override
    public MeituanResponse<ChangeOccupationDurationHourrentResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<ChangeOccupationDurationHourrentResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "ChangeOccupationDurationHourrentRequest{" + "hotelId=" + hotelId + "," + "occupationId=" + occupationId + "}";
    }
}
